package com.mce.nebula.entity;

import com.mce.nebula.common.BaseEntity;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 云市应用标签实体，对应Python的RainbondCenterAppTag模型
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "rainbond_center_app_tag",
       uniqueConstraints = @UniqueConstraint(columnNames = "name"))
public class RainbondCenterAppTag extends BaseEntity {
    
    @Column(name = "name", length = 32, unique = true, nullable = false)
    private String name;
    
    @Column(name = "enterprise_id", length = 32, nullable = false)
    private String enterpriseId;
    
    @Column(name = "is_deleted", nullable = false)
    private Boolean isDeleted = false;
}